import request from '@/utils/request'

// 获取监测点压力关系图
export function getPressureGraph(params) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/graph',
    method: 'get',
    params
  })
}

// 获取段下拉列表
export function getSegmentList() {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/segmentList',
    method: 'get'
  })
}

// 获取压降表格数据
export function getPressureTable(params) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/list',
    method: 'get',
    params
  })
}

// 获取压力衰减趋势图
export function getAttenuationTrend(params) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/trend/attenuation',
    method: 'get',
    params
  })
}

// 获取异常压力点提示
export function getAbnormalTips() {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/abnormal/tips/latest',
    method: 'get'
  })
}